﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="UpdateProcureCatalogList.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.DrugLibQuery.UpdateProcureCatalogList"
    Title="产品信息查询" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">产品库查询</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <td align="right">产品编号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsid" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">最小计量单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">提交状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlSubmitStatus">
                                    <asp:ListItem Text="全部" Value=""></asp:ListItem>
                                    <asp:ListItem Text="已提交" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="未提交" Value="0"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <%--                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompany_SC" runat="server"></asp:TextBox>
                            </td>
                            --%>
                        </tr>
                        <tr>
                            <td align="right">审核状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlCheckstatus">
                                    <asp:ListItem Text="全部" Value=""></asp:ListItem>
                                    <asp:ListItem Text="未审核" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="审核通过" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="审核未通过" Value="2"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <%-- <td align="right">
                                分类名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductType" runat="server"></asp:TextBox>
                            </td>
                            
                            <td align="right">
                                &nbsp;项目：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProject" runat="server">
                                </asp:DropDownList>
                            </td>--%>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！" OnRowCommand="gvwProduceCatalog_Command" DataKeyNames="GoodsId" OnRowDataBound="gvwProduceCatalog_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsId" HeaderText="产品编号" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:TemplateField HeaderText="入围价格">
                <ItemTemplate>
                    <asp:Label ID="lblbidprice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("ProjectID").ToString() =="0002"?Eval("procureprice"):Eval("bidprice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PackCount" HeaderText="最小零售包装数量" />
            <asp:TemplateField HeaderText="最小零售包装价格">
                <ItemTemplate>
                    <%# Eval("PackCount") == null ? "" : Eval("PackCount") == "" ? "" : HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"),Eval("ProjectID").ToString() =="0002"?Eval("procureprice"):(Convert.ToInt32(Eval("PackCount").ToString())* Convert.ToDecimal(Eval("bidprice"))).ToString()) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PackUnit" HeaderText="最小零售包装单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" />
            <asp:TemplateField HeaderText="提交状态">
                <ItemTemplate>
                    <%#Eval("SubmitStatus").ToString()=="1"?"已提交":"未提交" %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="审核状态">
                <ItemTemplate>
                    <%#GetCheck(Eval("CheckStatus").ToString())%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="NoPassReson" HeaderText="不通过原因" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <hz:HzLinkButton ID="btnchange" runat="server" Text="修改" CommandName="Update" CommandArgument='<%#Eval("GoodsId")%>'></hz:HzLinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <%--  <asp:TemplateField HeaderText=" ">
                <HeaderTemplate>
                  <input id="chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwHospitalList','chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                 <input type="checkbox" name="chkUser" id="chkUser"   />
                    <asp:CheckBox ID="check" runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>--%>
            <asp:BoundField DataField="ProjectName" HeaderText="项目" Visible="false" />
            <asp:BoundField Visible="false" DataField="AddTime" HeaderText="添加时间" DataFormatString="{0:yyyy-MM-dd}" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
            OnClick="btnExport_Click" />
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnSubmit" runat="server" Text="提交"
            CssClass="btn" OnClick="btnSubmit_Click" Visible="false" />
    </div>
    <div class="listip">
        <ul>
            <li>说明：<span>采购平台产品库目录查询。</span></li>
        </ul>
    </div>
</asp:Content>
